<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.2-20121118"/>
<title>SensorFramework: saxion.sensorframework.SensorProcessor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SensorFramework
   &#160;<span id="projectnumber">1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2-20121118 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="a00031.html">saxion</a></li><li class="navelem"><a class="el" href="a00032.html">sensorframework</a></li><li class="navelem"><a class="el" href="a00008.html">SensorProcessor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="a00045.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">saxion.sensorframework.SensorProcessor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Used for sensor related tasks.  
 <a href="a00008.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for saxion.sensorframework.SensorProcessor:</div>
<div class="dyncontent">
<div class="center"><img src="a00046.png" border="0" usemap="#saxion_8sensorframework_8_sensor_processor_coll__map" alt="Collaboration graph"/></div>
<map name="saxion_8sensorframework_8_sensor_processor_coll__map" id="saxion_8sensorframework_8_sensor_processor_coll__map">
<area shape="rect" title=" &#45;logger" alt="" coords="119,81,127,89"/><area shape="rect" title=" &#45;logger" alt="" coords="93,545,101,553"/><area shape="rect" href="a00003.html" title="The Data Acces Object wich contains all data queries that will be executed by SqlConnect." alt="" coords="157,149,371,485"/><area shape="rect" title=" ~logger" alt="" coords="157,81,165,89"/><area shape="rect" title=" ~logger" alt="" coords="185,145,193,153"/><area shape="rect" title=" &#45;daoSensor" alt="" coords="179,481,187,489"/><area shape="rect" title=" &#45;daoSensor" alt="" coords="149,545,157,553"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a65ddbe33a6b56b5e0df695253ce89a3c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#a65ddbe33a6b56b5e0df695253ce89a3c">SensorProcessor</a> ()</td></tr>
<tr class="memdesc:a65ddbe33a6b56b5e0df695253ce89a3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Classe for processing sensors and sensor data.  <a href="#a65ddbe33a6b56b5e0df695253ce89a3c"></a><br/></td></tr>
<tr class="separator:a65ddbe33a6b56b5e0df695253ce89a3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af317626cbdd25f2613c20992f49cf3a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00006.html">Sensor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#af317626cbdd25f2613c20992f49cf3a8">convertXMLtoObject</a> (String xmlLocation)</td></tr>
<tr class="memdesc:af317626cbdd25f2613c20992f49cf3a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Covert XML document to sensor Object.  <a href="#af317626cbdd25f2613c20992f49cf3a8"></a><br/></td></tr>
<tr class="separator:af317626cbdd25f2613c20992f49cf3a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0715c7d7fd39f2802859cc66270df60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#ae0715c7d7fd39f2802859cc66270df60">readXMLtoDatabase</a> (String xmlLocation)  throws Exception 	</td></tr>
<tr class="memdesc:ae0715c7d7fd39f2802859cc66270df60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads xml data to database.  <a href="#ae0715c7d7fd39f2802859cc66270df60"></a><br/></td></tr>
<tr class="separator:ae0715c7d7fd39f2802859cc66270df60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4170fa430dcc2c4b0d2491cf3ee8298"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#ab4170fa430dcc2c4b0d2491cf3ee8298">saveDataToFile</a> (byte[] data, String file)</td></tr>
<tr class="memdesc:ab4170fa430dcc2c4b0d2491cf3ee8298"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save bytes to file.  <a href="#ab4170fa430dcc2c4b0d2491cf3ee8298"></a><br/></td></tr>
<tr class="separator:ab4170fa430dcc2c4b0d2491cf3ee8298"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:af9dc0529b3241188f21b47c8aa022c60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#af9dc0529b3241188f21b47c8aa022c60">initialize</a> ()</td></tr>
<tr class="memdesc:af9dc0529b3241188f21b47c8aa022c60"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize variables.  <a href="#af9dc0529b3241188f21b47c8aa022c60"></a><br/></td></tr>
<tr class="separator:af9dc0529b3241188f21b47c8aa022c60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:a92f04e7d86c1857bb79d741771253834"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#a92f04e7d86c1857bb79d741771253834">getValue</a> (String tag, Element element)</td></tr>
<tr class="memdesc:a92f04e7d86c1857bb79d741771253834"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value from DOM element.  <a href="#a92f04e7d86c1857bb79d741771253834"></a><br/></td></tr>
<tr class="separator:a92f04e7d86c1857bb79d741771253834"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a04db51373f0580924d17a923d38d851f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00003.html">DaoSensor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#a04db51373f0580924d17a923d38d851f">daoSensor</a></td></tr>
<tr class="memdesc:a04db51373f0580924d17a923d38d851f"><td class="mdescLeft">&#160;</td><td class="mdescRight">DaoSensor used for database connection.  <a href="#a04db51373f0580924d17a923d38d851f"></a><br/></td></tr>
<tr class="separator:a04db51373f0580924d17a923d38d851f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:abeddd1054f99bf6d906bd7d88664776b"><td class="memItemLeft" align="right" valign="top">static Logger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00008.html#abeddd1054f99bf6d906bd7d88664776b">logger</a> = Logger.getLogger(SensorValidator.class.getName())</td></tr>
<tr class="memdesc:abeddd1054f99bf6d906bd7d88664776b"><td class="mdescLeft">&#160;</td><td class="mdescRight">logger  <a href="#abeddd1054f99bf6d906bd7d88664776b"></a><br/></td></tr>
<tr class="separator:abeddd1054f99bf6d906bd7d88664776b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Used for sensor related tasks. </p>
<p>Classes provides function to convert xml document to object, Save data to file, save sensor and sensor data to database</p>
<dl class="section author"><dt>Author</dt><dd>Erik &amp; Martijn </dd></dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00031">31</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a65ddbe33a6b56b5e0df695253ce89a3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">saxion.sensorframework.SensorProcessor.SensorProcessor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Classe for processing sensors and sensor data. </p>

<p>Definition at line <a class="el" href="a00020_source.html#l00040">40</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_a65ddbe33a6b56b5e0df695253ce89a3c_cgraph.png" border="0" usemap="#a00008_a65ddbe33a6b56b5e0df695253ce89a3c_cgraph" alt=""/></div>
<map name="a00008_a65ddbe33a6b56b5e0df695253ce89a3c_cgraph" id="a00008_a65ddbe33a6b56b5e0df695253ce89a3c_cgraph">
<area shape="rect" href="a00008.html#af9dc0529b3241188f21b47c8aa022c60" title="initialize variables." alt="" coords="268,5,479,48"/></map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af317626cbdd25f2613c20992f49cf3a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00006.html">Sensor</a> saxion.sensorframework.SensorProcessor.convertXMLtoObject </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>xmlLocation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Covert XML document to sensor Object. </p>
<p>Uses JAX-b to create <a class="el" href="a00006.html">saxion.sensorframework.structuur.Sensor</a> object form the xml document. Provided to the function (xmllocation).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xmlLocation</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>create sensor object </dd></dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00068">68</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_af317626cbdd25f2613c20992f49cf3a8_icgraph.png" border="0" usemap="#a00008_af317626cbdd25f2613c20992f49cf3a8_icgraph" alt=""/></div>
<map name="a00008_af317626cbdd25f2613c20992f49cf3a8_icgraph" id="a00008_af317626cbdd25f2613c20992f49cf3a8_icgraph">
<area shape="rect" href="a00011.html#ad8754fda51b1d368982844746d4c7e3d" title="Register Sensor." alt="" coords="268,5,492,48"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a92f04e7d86c1857bb79d741771253834"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static String saxion.sensorframework.SensorProcessor.getValue </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>element</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get value from DOM element. </p>
<p>Retrieve value from DOM element provided.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td></td></tr>
    <tr><td class="paramname">element</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Retrieve value (NULL if not found) </dd></dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00146">146</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_a92f04e7d86c1857bb79d741771253834_icgraph.png" border="0" usemap="#a00008_a92f04e7d86c1857bb79d741771253834_icgraph" alt=""/></div>
<map name="a00008_a92f04e7d86c1857bb79d741771253834_icgraph" id="a00008_a92f04e7d86c1857bb79d741771253834_icgraph">
<area shape="rect" href="a00008.html#ae0715c7d7fd39f2802859cc66270df60" title="Reads xml data to database." alt="" coords="268,5,479,48"/><area shape="rect" href="a00011.html#ad85def6a26ecac56b8d1ca92dbcb8ed3" title="register sensordata" alt="" coords="529,5,767,48"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af9dc0529b3241188f21b47c8aa022c60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void saxion.sensorframework.SensorProcessor.initialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>initialize variables. </p>
<p>Creates DaoSensor <a class="el" href="a00003.html">saxion.sensorframework.db.dao.DaoSensor</a> </p>

<p>Definition at line <a class="el" href="a00020_source.html#l00050">50</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_af9dc0529b3241188f21b47c8aa022c60_icgraph.png" border="0" usemap="#a00008_af9dc0529b3241188f21b47c8aa022c60_icgraph" alt=""/></div>
<map name="a00008_af9dc0529b3241188f21b47c8aa022c60_icgraph" id="a00008_af9dc0529b3241188f21b47c8aa022c60_icgraph">
<area shape="rect" href="a00008.html#a65ddbe33a6b56b5e0df695253ce89a3c" title="Classe for processing sensors and sensor data." alt="" coords="268,5,479,48"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae0715c7d7fd39f2802859cc66270df60"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void saxion.sensorframework.SensorProcessor.readXMLtoDatabase </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>xmlLocation</em></td><td>)</td>
          <td>  throws Exception 	</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads xml data to database. </p>
<p>Get sensor data field from the database. Sensor ID provide in the xml document. Use a DocumentBuilderFactory to read xml file and retrive the sensor data. After retrive the sensor data the data is write to the database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xmlLocation</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Exception</td><td>if error occures ( No data is written to the database) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00095">95</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_ae0715c7d7fd39f2802859cc66270df60_cgraph.png" border="0" usemap="#a00008_ae0715c7d7fd39f2802859cc66270df60_cgraph" alt=""/></div>
<map name="a00008_ae0715c7d7fd39f2802859cc66270df60_cgraph" id="a00008_ae0715c7d7fd39f2802859cc66270df60_cgraph">
<area shape="rect" href="a00008.html#a92f04e7d86c1857bb79d741771253834" title="Get value from DOM element." alt="" coords="271,5,481,48"/><area shape="rect" href="a00003.html#a14ba74caccde5492a3c11a2a321600f2" title="Gets the data columns of a Sensor." alt="" coords="268,72,484,115"/><area shape="rect" href="a00003.html#a05fec2fa9ee7f94a099c7ddc2e9fe98a" title="Add sensor data to the database." alt="" coords="269,139,483,181"/><area shape="rect" href="a00003.html#acd55af2a210d1f28920f42558a75c3cf" title="Get the datatable name." alt="" coords="533,105,747,148"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_ae0715c7d7fd39f2802859cc66270df60_icgraph.png" border="0" usemap="#a00008_ae0715c7d7fd39f2802859cc66270df60_icgraph" alt=""/></div>
<map name="a00008_ae0715c7d7fd39f2802859cc66270df60_icgraph" id="a00008_ae0715c7d7fd39f2802859cc66270df60_icgraph">
<area shape="rect" href="a00011.html#ad85def6a26ecac56b8d1ca92dbcb8ed3" title="register sensordata" alt="" coords="268,5,505,48"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab4170fa430dcc2c4b0d2491cf3ee8298"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void saxion.sensorframework.SensorProcessor.saveDataToFile </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Save bytes to file. </p>
<p>Writes byte[] array to file using BufferdOutputStream </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Byte array to write to the file </td></tr>
    <tr><td class="paramname">file</td><td>location and extension to the file. example temp/test.xml </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00159">159</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="a00008_ab4170fa430dcc2c4b0d2491cf3ee8298_icgraph.png" border="0" usemap="#a00008_ab4170fa430dcc2c4b0d2491cf3ee8298_icgraph" alt=""/></div>
<map name="a00008_ab4170fa430dcc2c4b0d2491cf3ee8298_icgraph" id="a00008_ab4170fa430dcc2c4b0d2491cf3ee8298_icgraph">
<area shape="rect" href="a00011.html#ad8754fda51b1d368982844746d4c7e3d" title="Register Sensor." alt="" coords="275,5,499,48"/><area shape="rect" href="a00011.html#ad85def6a26ecac56b8d1ca92dbcb8ed3" title="register sensordata" alt="" coords="268,72,505,115"/></map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a04db51373f0580924d17a923d38d851f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00003.html">DaoSensor</a> saxion.sensorframework.SensorProcessor.daoSensor</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>DaoSensor used for database connection. </p>

<p>Definition at line <a class="el" href="a00020_source.html#l00034">34</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

</div>
</div>
<a class="anchor" id="abeddd1054f99bf6d906bd7d88664776b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Logger saxion.sensorframework.SensorProcessor.logger = Logger.getLogger(SensorValidator.class.getName())</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>logger </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00007.html#a42d5b539b22c0fca51cc3a1842d83e03" title="log4j used for logging.">SensorFramework::logger</a> </dd></dl>

<p>Definition at line <a class="el" href="a00020_source.html#l00033">33</a> of file <a class="el" href="a00020_source.html">SensorProcessor.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/saxion/sensorframework/<a class="el" href="a00020_source.html">SensorProcessor.java</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 1 2013 11:25:01 for SensorFramework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2-20121118
</small></address>
</body>
</html>
